package commons;

import redis.clients.jedis.Jedis;

/**
 * @author zwei
 * @create 2024-06-18 15:31
 */
public class RedisHelper {
    public static Jedis getRedisInstance(){
        Jedis jedis=new Jedis(
                DbProperties.getInstance().getProperty("redis.host"),
                Integer.parseInt(DbProperties.getInstance().getProperty("redis.port"))
                );
            jedis.auth(DbProperties.getInstance().getProperty("redis.pwd"));

        return jedis;

    }
}
